
function trim(str, chars) {
	return ltrim(rtrim(str, chars), chars);
}
 
function ltrim(str, chars) {
	chars = chars || "\\s";
	return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
 
function rtrim(str, chars) {
	chars = chars || "\\s";
	return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}

function resize(){
	document.getElementById("product-view").style.height = ((window.innerHeight - 80) + 'px');
	document.getElementById("realcontent").style.height = ((window.innerHeight - 340) + 'px');
}

function resizemain(){
	document.getElementById("product-view").style.height = ((window.innerHeight - 100) + 'px');
	document.getElementById("content").style.height = ((window.innerHeight - 250) + 'px');
}

function resizerecepti(){
	document.getElementById("product-view").style.height = ((window.innerHeight - 100) + 'px');
}

function isArray(obj) {
	   if (obj.constructor.toString().indexOf("Array") == -1)
	      return false;
	   else
	      return true;
	}
function setSelected(kind){
	document.getElementById(kind).className = 'servizna-lenta-item selected1';
}

